<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改')" />
</head>
<body class="white-bg" th:object="${payTransRsp}">
	<!--请求报文-->
    <div class="wrapper wrapper-content animated fadeInRight ibox-content" >
		<div class="form-group">
			<label class="col-sm-1 control-label" style="font-size: 20px">请求报文：</label>
			<div class="col-sm-10">
				<textarea th:field="*{req}" type="text" name="" class="form-control"  style="margin: 0px 19.2344px 0px 0px; width: 90%; height: 100px;"></textarea>
			</div>
		</div>
    </div>
	<!--返回报文-->
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<div class="form-group">
			<label class="col-sm-1 control-label" style="font-size: 20px">返回报文：</label>
			<div class="col-sm-10">
				<textarea th:field="*{rsp}" type="text" name="" class="form-control"  style="margin: 0px 19.2344px 0px 0px; width: 90%; height: 100px;"></textarea>
			</div>
		</div>
	</div>
	<!--未支付 提示框-->
	<div id="unPay" class="alert alert-danger" style="margin-top: 5%; width: 82%; height: 25%;display: none">
		<span style="font-size: 32px">未支付！</span>
	</div>
	<!--已支付 提示框-->
	<div id="pay" class="alert alert-success" style="margin-top: 5%; width: 82%; height: 25%;display: none">
		<span style="font-size: 32px">已支付！</span>
	</div>
	<!--错误查询 提示框-->
	<div id="unknownPay" class="alert alert-danger" style="margin-top: 5%; width: 82%; height: 25%;display: none">
		<span id="unknownContent" style="font-size: 32px"></span>
	</div>

	<div th:include="include::footer"></div>
    <script th:inline="javascript">
        var withdrawalRsp = [[${withdrawalRsp}]];
        if (withdrawalRsp.code == "success"){
            var status = [[${status}]];
            if (status == 0) {
                $("#unPay").css({'display':'block'});
            }
            if (status == 1) {
                $("#pay").css({'display':'block'});
            }
		}else {
            $("#unknownPay").css({'display':'block'});
            document.getElementById("unknownContent").innerText = withdrawalRsp.msg + "！";
		}

	</script>
</body>
</html>
